package edu.its.dreamteam.daf.beans;

import java.io.Serializable;

public class WeeklyResult extends BaseBean implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer rowId;
	private Integer weekNo;
	private String idClub;
	private String idPlayer;
	private Integer m;
	private Integer g;
	private Integer a;
	private Integer c;
	private Integer plus;
	private Integer minus;
	private Integer y;
	private Integer r;
	private Integer s;
	private Integer b;
	private Integer t;
	
	private Club club;
	private Player player;
	
	
	public Club getClub() {
		if(club==null){
			club = new Club();
		}
		return club;
	}
	public void setClub(Club club) {
		this.club = club;
	}
	public Player getPlayer() {
		if(player==null){
			player = new Player();
		}
		return player;
	}
	public void setPlayer(Player player) {
		this.player = player;
	}
	public Integer getRowId() {
		return rowId;
	}
	public void setRowId(Integer rowId) {
		this.rowId = rowId;
	}
	public Integer getWeekNo() {
		return weekNo;
	}
	public void setWeekNo(Integer weekNo) {
		this.weekNo = weekNo;
	}
	public String getIdClub() {
		idClub = getClub().getIdClub();
		return idClub;
	}
	public void setIdClub(String idClub) {
		this.idClub = idClub;
		getClub().setIdClub(idClub);
	}
	public String getIdPlayer() {
		idPlayer = getPlayer().getIdPlayer();
		return idPlayer;
	}
	public void setIdPlayer(String idPlayer) {
		this.idPlayer = idPlayer;
		getPlayer().setIdPlayer(idPlayer);
	}
	public Integer getM() {
		return m;
	}
	public void setM(Integer m) {
		this.m = m;
	}
	public Integer getG() {
		return g;
	}
	public void setG(Integer g) {
		this.g = g;
	}
	public Integer getA() {
		return a;
	}
	public void setA(Integer a) {
		this.a = a;
	}
	public Integer getC() {
		return c;
	}
	public void setC(Integer c) {
		this.c = c;
	}
	public Integer getPlus() {
		return plus;
	}
	public void setPlus(Integer plus) {
		this.plus = plus;
	}
	public Integer getMinus() {
		return minus;
	}
	public void setMinus(Integer minus) {
		this.minus = minus;
	}
	public Integer getY() {
		return y;
	}
	public void setY(Integer y) {
		this.y = y;
	}
	public Integer getR() {
		return r;
	}
	public void setR(Integer r) {
		this.r = r;
	}
	public Integer getS() {
		return s;
	}
	public void setS(Integer s) {
		this.s = s;
	}
	public Integer getB() {
		return b;
	}
	public void setB(Integer b) {
		this.b = b;
	}
	public Integer getT() {
		return t;
	}
	public void setT(Integer t) {
		this.t = t;
	}
	@Override
	protected String getPrimaryKey() {
		return String.valueOf(getRowId());
	}
	
	
	
}
